<?php
if($_SERVER['REQUEST_METHOD'] == "GET"){
	if(isset($_GET)){
		if(isset($_GET['language']) && !empty($_GET['language'])){
			$expire=time()+60*60*24*30;
			setcookie('language', $_GET['language'], $expire, '/lab');
			echo 'Cookie set to: '.$_GET['language'];
		}//if
	}//if
}//if
?>